home *** CD-ROM | disk | FTP | other *** search
/ Champak 33 / Volume 33 - JOGO DISK .iso / Games / mongol_fiere.swf / scripts / frame_3 / PlaceObject2_105_115 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Text File  |  2007-01-15  |  702b  |  37 lines

  1. onClipEvent(enterFrame){
  2.    if(_root.L1 == 1 and _root.L1s == 0)
  3.    {
  4.       _root.leson.gotoAndPlay(2);
  5.       _root.L1s = 1;
  6.    }
  7.    if(_root.L2 == 1 and _root.L2s == 0)
  8.    {
  9.       _root.leson.gotoAndPlay(2);
  10.       _root.L2s = 1;
  11.    }
  12.    if(_root.L3 == 1 and _root.L3s == 0)
  13.    {
  14.       _root.leson.gotoAndPlay(2);
  15.       _root.L3s = 1;
  16.    }
  17.    if(Key.isDown(32) and _root.death == false)
  18.    {
  19.       _root.speed -= _root.upspeed;
  20.    }
  21.    else
  22.    {
  23.       _root.speed += 0.2;
  24.    }
  25.    if(20 >= _Y)
  26.    {
  27.       _Y = 21;
  28.       _root.speed *= -1;
  29.    }
  30.    if(_Y >= 190 and _root.death == false)
  31.    {
  32.       _Y = 189;
  33.       _root.speed *= -0.5;
  34.    }
  35.    _Y = _Y + _root.speed;
  36. }
  37.